import request from "@/sheep/request";

export default {
  // 获取企业信息
  detail: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=getCompanyIndex`,
      method: "POST",
      data: params,
    }),
  //表单编辑信息
  detailedit: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=getCompanyEdit`,
      method: "POST",
      data: params,
    }),
  //企业详情接口
  info: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=getCompanyInfo`,
      method: "POST",
      data: params,
    }),
  //企业详情接口
  update: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=companyEditForm`,
      method: "POST",
      data: params,
    }),
  archivalList: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=getCompanyItemList`,
      method: "POST",
      data: params,
    }),
  archivalDetail: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=getCompanyArchivalList`,
      method: "POST",
      data: params,
    }),
  getTaskInfo: (params) =>
    request({
      url: `/app_api.php?t=company_assess&s=company&op=getTaskInfo`,
      method: "POST",
      data: params,
    }),
  getTaskList: (params) =>
    request({
      url: `/app_api.php?t=company_assess&s=company&op=getTaskList`,
      method: "POST",
      data: params,
    }),
  getTaskAssessInfo: (params) =>
    request({
      url: `/app_api.php?t=company_assess&s=company&op=getTaskAssessInfo`,
      method: "POST",
      data: params,
    }),
    login_out:(params)=>request({
      url: `/app_api.php?t=third_company&s=thirdParty&op=login_out`,
      method: "POST",
      data: params,
    }),
  delArchival: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=delCompanyArchival`,
      method: "POST",
      data: params,
    }),
  addDetail: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=addCompanyArchival`,
      method: "POST",
      data: params,
    }),
  peopledel: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=companyUserDel`,
      method: "POST",
      data: params,
    }),
  peopleaddupdate: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=companyUserEditForm`,
      method: "POST",
      data: params,
    }),
  userEdit: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=companyUserUpdateAvatarUrl`,
      method: "POST",
      data: params,
    }),
  userEditPassword: (params) =>
    request({
      url: `/app_api.php?t=company&s=company&op=companyUserUpdatePassword`,
      method: "POST",
      data: params,
    }),
  user: (params) =>
    request({
      url: `/app_api.php?t=company_user&s=company&op=user`,
      method: "POST",
      data: params,
    }),
    
};
